﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Me.Prettyprint.Cassandra.Utils
{
    /// <summary>
    /// The purpose of DictionaryEntry is to mimic Java's Map.Entry 
    /// class. Some of the Hector wrapper classes use Map.Entry
    /// to iterate over a Map. To do the same thing for dictionary,
    /// having a class like Entry makes it easier.
    /// </summary>
    /// <typeparam name="K"></typeparam>
    /// <typeparam name="V"></typeparam>
    public class DictionaryEntry<K,V>
    {
        public DictionaryEntry(K key, V value)
        {
            Key = key;
            Value = value;
        }
        public K Key
        {
            get;
            set;
        }
        public V Value
        {
            get;
            set;
        }
    }
}
